export default {
	data() {
		return {
			siteList:[],
			memberInfo:{},
		};
	},
	created() {
		//加判断 编辑页来的，请求列表接口
		// #ifdef MP-WEIXIN
		if (wx.getUserProfile) this.canIUseGetUserProfile = true;
		// #endif
	},
	onLoad(){
		this.memberInfo = uni.getStorageSync(this.preutils.userinfo)
		this.siteListData();
	},
	methods: {
		     
		siteListData() { 
			this.http.sendRequest({
				api: this.api.mine.siteTreeList,
				data: {logistics_id: this.memberInfo.logistics_id},
				success: res => {
					if (res.code == '1') {
						this.siteList = res.data; 
					}
				},
				fail: res => {
					console.log(res, '==fail')
				}
			});
		},
		 
		toWaybillList(item) {
			console.log(item)
			this.$util.redirectTo('/pages/order/order-list/allocation-order-list', {
				journey_id: this.check.strNullReplace(item.journey_id,''), 
			});
		}, 
  
	}
};